const common = require("./webpack.common.js")
const {merge} = require("webpack-merge")
const {CleanWebpackPlugin} = require("clean-webpack-plugin")
const CopyWebpackPlugin = require("copy-webpack-plugin")
const HtmlWebpackPlugin = require("html-webpack-plugin")


module.exports = merge(common, {
    mode:'production',
    devtool:false,
    plugins:[
        new CleanWebpackPlugin(),
        new CopyWebpackPlugin(['public']),
        new HtmlWebpackPlugin({
            // template:"./index.html",
            filename:"index.html"
        })
    ]
})